﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using xiaoxiong.ScadaProModbusRtu.Common;

namespace xiaoxiong.ScadaProModbusRtu.Message
{
    public class MessageFilter : IMessageFilter
    {
        public bool PreFilterMessage(ref System.Windows.Forms.Message m)
        {      
            if (m.Msg == 0x0200 || m.Msg == 0x0201 || m.Msg == 0x0204 || m.Msg == 0x0207)
            {
                CommonMethods.tickCount = 0;
            }
            return false;
        }
    }
}
